package com.icesoft.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.icesoft.framework.core.annotation.Entity;
import com.icesoft.framework.core.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_permission")
@Entity(module = "system", describe = "接口权限")
public class Permission extends BaseEntity {

	@TableField
	@Column(value = "role_id", comment = "角色Id")
	private Long roleId;

	@TableField
	@Column(value = "authority", comment = "权限")
	private String authority;

	public Permission() {
	}

	public Permission(Long roleId, String authority) {
		this.roleId = roleId;
		this.authority = authority;
	}
}
